package com.cvit.dao;

import com.cvit.model.Science;
import com.cvit.model.ScienceExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ScienceMapper {
    long countByExample(ScienceExample example);

    int deleteByExample(ScienceExample example);

    int deleteByPrimaryKey(String id);

    int insert(Science record);

    int insertSelective(Science record);

    //查询全部
    List<Science> selectByExample(ScienceExample example);
    
    //文科
    List<Science> selectArts(String overall_type,List ids);
    
    //理科
    List<Science> selectScience(String overall_type,List ids);
    
    Science selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Science record, @Param("example") ScienceExample example);

    int updateByExample(@Param("record") Science record, @Param("example") ScienceExample example);

    int updateByPrimaryKeySelective(Science record);

    int updateByPrimaryKey(Science record);
}